wayland: Move additional pointer buttons after the old 4-7 scrolling ones
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Nov 2015 11:51:42 +0000 (12:51 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 17 Nov 2015 21:41:22 +0000 (22:41 +0100)
commit4c49c0a297d67102175fac645762682476336620
tree52b4b385a0f9410383a0c3e4539c0e94f87ce7c8
parenta51c607df7a20cc3945c3395394d8f49682e76d0
wayland: Move additional pointer buttons after the old 4-7 scrolling ones

We were using that range for the extra buttons after left/right/middle,
while this is harmless for clients not handling extra buttons (we
used to translate those button events into scroll events in x11 anyway)
this will be unexpected for clients that do handle additional mouse
buttons themselves (eg. back/forward buttons present in some mice).

In order to remain compatible with X11, those need to be assigned from
button 8 onwards.

Also, include input.h, and stop using magic numbers here.

https://bugzilla.gnome.org/show_bug.cgi?id=758072
gdk/wayland/gdkdevice-wayland.c